{"ast":null,"code":"import { useRef, useEffect } from 'react';\nimport raf from \"rc-util/es/raf\";\n/**\n * Always trigger latest once when call multiple time\n */\nexport default (function () {\n  var idRef = useRef(0);\n  var cleanUp = function cleanUp() {\n    raf.cancel(idRef.current);\n  };\n  useEffect(function () {\n    return cleanUp;\n  }, []);\n  return function (callback) {\n    cleanUp();\n    idRef.current = raf(function () {\n      callback();\n    });\n  };\n});","map":{"version":3,"names":["useRef","useEffect","raf","idRef","cleanUp","cancel","current","callback"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/rc-input-number/es/hooks/useFrame.js"],"sourcesContent":["import { useRef, useEffect } from 'react';\nimport raf from \"rc-util/es/raf\";\n/**\n * Always trigger latest once when call multiple time\n */\nexport default (function () {\n  var idRef = useRef(0);\n  var cleanUp = function cleanUp() {\n    raf.cancel(idRef.current);\n  };\n  useEffect(function () {\n    return cleanUp;\n  }, []);\n  return function (callback) {\n    cleanUp();\n    idRef.current = raf(function () {\n      callback();\n    });\n  };\n});"],"mappings":"AAAA,SAASA,MAAM,EAAEC,SAAS,QAAQ,OAAO;AACzC,OAAOC,GAAG,MAAM,gBAAgB;AAChC;AACA;AACA;AACA,gBAAgB,YAAY;EAC1B,IAAIC,KAAK,GAAGH,MAAM,CAAC,CAAC,CAAC;EACrB,IAAII,OAAO,GAAG,SAASA,OAAO,GAAG;IAC/BF,GAAG,CAACG,MAAM,CAACF,KAAK,CAACG,OAAO,CAAC;EAC3B,CAAC;EACDL,SAAS,CAAC,YAAY;IACpB,OAAOG,OAAO;EAChB,CAAC,EAAE,EAAE,CAAC;EACN,OAAO,UAAUG,QAAQ,EAAE;IACzBH,OAAO,EAAE;IACTD,KAAK,CAACG,OAAO,GAAGJ,GAAG,CAAC,YAAY;MAC9BK,QAAQ,EAAE;IACZ,CAAC,CAAC;EACJ,CAAC;AACH,CAAC"},"metadata":{},"sourceType":"module"}